package src.dual_pointers;

/**
 * @author starsea
 * @date 2024-09-23 16:55
 */

public class Test18 {
    public static void main(String[] args) {
        String str="?as";
    }
    public static String modifyString(String s) {
        char[] arr=s.toCharArray();
        for(int i=0;i<arr.length;i++)
        {
            if(arr[i]=='?')
            {
                for(char ch='a';ch<='z';ch++)
                {
                   if(!s.contains(ch+""))
                   {
                       arr[i]=ch;
                       break;
                   }
                }
            }
        }
        return String.valueOf(arr);
    }
}
